import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 分页质量考核评分表单库维护-查询
export function doQueryEvaluationMaintenanceList(query) {
  const data = mergeParams(query)
  return newRequest({
    url: 'MTSaas/ZlkhGrade/doQueryPage',
    method: 'post',
    data
  })
}

// 删除质量考核评分表单库维护
export function deleteEvaluationMaintenance(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhGrade/doDelete',
    method: 'delete',
    data
  })
}

// 编辑
export function updateEvaluationMaintenance(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhGrade/doUpdate',
    method: 'put',
    data
  })
}

export function ZlkhEvaluationElementDict(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhEvaluationElement/doQueryPage',
    method: 'post',
    data
  })
}

export function ZlkhExaminationPlanData(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlan/doQueryPage',
    method: 'post',
    data
  })
}


export function doEvaluationMaintenance(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doEvaluationMaintenance',
    method: 'post',
    data
  })
}

export function doQueryEvaluationMaintenanceDetail(query) {
  const data = mergeParams(query)
  return newRequest({
    url: 'MTSaas/ZlkhMain/doQueryEvaluationMaintenance',
    method: 'post',
    data
  })
}

export function doQueryStructureTreeData(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhExaminationPlanDetail/doQueryStructure',
    method: 'post',
    data
  })
}

export function doQueryCount(query) {
  const data = mergeParams(query)
  return newRequest({
    url: 'MTSaas/ZlkhExaminationPlanDetail/doQueryCount',
    method: 'post',
    data
  })
}

export function doQueryEvaluationDetail(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doQueryEvaluationMaintenance',
    method: 'post',
    data
  })
}

export function doQueryResultDetail(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doQueryResultDetail',
    method: 'post',
    data
  })
}

export function doApprove(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doApprove',
    method: 'post',
    data
  })
}

export function doChangeUpdate(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doChangeUpdate',
    method: 'post',
    data
  })
}

export function doEvaluation(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doEvaluation',
    method: 'post',
    data
  })
}

export function doNeedChangeUpdate(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doNeedChangeUpdate',
    method: 'post',
    data
  })
}

export function doNonChangeUpdate(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doNonChangeUpdate',
    method: 'post',
    data
  })
}

export function doAnalysisStatistics(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/MTSaas/ZlkhMain/doAnalysisStatistics',
    method: 'post',
    data
  })
}
